
#include "Common.h"

//
//	Program entry point
//
int main(int argc, const char* argv[]) {
	
	Renderer renderer(800, 600);
	if(!renderer.isInitialized()) { return EXIT_FAILURE; }

	ShaderManager::init();



	/* ---	Main Loop --- */
	bool RUNNING = true;

	while(RUNNING) {
		glClearColor(1,0,0,1);
		glClear(GL_COLOR_BUFFER_BIT);
		renderer.swapBuffers();

		RUNNING = !glfwGetKey( GLFW_KEY_ESC ) && glfwGetWindowParam( GLFW_OPENED );

	};


	/* --- Cleanup --- */
	//ShaderManager::destroy();

	return EXIT_SUCCESS;

};